package com.example.elmspringboot.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.elmspringboot.domain.Admin;
import com.example.elmspringboot.domain.Business;
import com.example.elmspringboot.mapper.BusinessMapper;

import java.util.List;

public interface BusinessService extends IService<Business> {

    List<Business> selectBusinessByName(String name);
    Boolean login(String name,String password);
//    IPage<Business> getPage(int currentPage, int pageSize);
    IPage<Business> getPage(int currentPage, int pageSize,Business business);

    Boolean register(String username,String password);
}

